<?php
	require_once('assert.php');
	require_once(dirname(__FILE__) . '/../viae/canvasPixelSizeCalculator.php');
	
	test(10,100,393.700787); echo "<br/>";
	test(10,75,295.27559025); echo "<br/>";
	test(10,150,590.5511805); echo "<br/>";
	
	function test($cmValue, $dpi, $expected){
		assertEquals($expected, cmAndDpiToPixel($cmValue, $dpi), "Given: [cm: $cmValue; dpi: $dpi] and expected: $expected");
	}
?>